-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom authorities #1362
Custom authorities #1362
Conversation
Changed from reference, to avoid unexpected nullptr dereference
still need to add checks in do_evaluate()
Need to update FC to master after changes got merged into master
template<typename OpType> | ||
result_type operator()( const OpType& ) // Note: the parameter is a reference of *nullptr, we should not use it | ||
{ | ||
FC_ASSERT( _restriction.member < fc::reflector<OpType>::total_member_count, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We call visit_local_member
below, so it makes more sense to check local_member_count
rather than total_member_count
here.
void validate_restriction_details( const restriction& r, unsigned_int op_type ) | ||
{ | ||
restriction_validation_visitor vtor( r ); | ||
switch( op_type.value ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to refactor due to changes on static_variant
: bitshares/bitshares-fc#79
Work in progress here: blockops-de#1 |
Closing in favor of #1860. |
Work in progress for BSIP40 / #1285.
Not ready for merge.
Task list: